<tpl> include file='sys_config.head.html' </tpl>
<div id="doc3">
	<div id="yui-main">
		<div class="yui-g">
 			<div id="divinbox">
				<div class="gtlbar">
					<div class="gtlbar-left">项目执行管理 &gt;&gt; 提交执行方案</div>
					<div onclick="location.href='doing_flow.manage.php?action=zhixing_view'" class="gtlbar-right">
							<input type="button" name="" class="apd" style="width:150px;">
							<b>浏览&打印&审批</b>
					</div>
				</div>
                <div class="ctge">
					<div class="ctge-1">
						<div style="font-size:16px; font-weight:bold; height:30px;">
	    					<a href="project_official.manage.php?action=view&id=2&curpage=1">“中国达人”广告投放项目</a>
	    				</div>
						
        				<div class="ctge-1-1">
	        				<div style="text-align:center">
	        				<tpl>if $fangan.id neq '' </tpl>
	        					<table width="100%" border="1">
	        						<tr>
	        							<th colspan="3">
	        								<div style="height:30px; font-size:14px; font-weight:bold;">已提交项目方案</div>
	        							</th>
	        						</tr>
	        						<tr style=" background: none repeat scroll 0 0 #EEEEEE;  font-size: 14px; ">
	        							<td>
	        								方案名称
	        							</td>
	        							<td>
	        								状态
	        							</td>
	        							<td>
	        								动作
	        							</td>
	        							
	        						</tr>
	        						<tr>
	        							<td><tpl>$fangan.title</tpl></td>
	        							<td>
	        								<tpl>if $fangan.status eq '1'</tpl>
	        									待审核
	        								<tpl>elseif $fangan.status eq '2'</tpl>
	        									打回
	        								<tpl>elseif $fangan.status eq '3'</tpl>
	        									审核通过
	        								<tpl>/if</tpl>
	        							</td>
	        							<td><a href="doing_flow.manage.php?action=download_fangan&fangan_id=<tpl>$fangan.id</tpl>">下载</a></td>
	        						</tr>
	        						<tr>
	        							<td colspan="3">
	        								<a href="javascript:del_fangan(<tpl>$fangan.id</tpl>);">删除此方案，重新上传</a>
	        							</td>
	        						</tr>
	        					</table>
	        				<tpl>else</tpl>
	        				<form name="dong_flow" method="POST" action="doing_flow.manage.php?action=save_zhixing" enctype="multipart/form-data">
	        				<input type="hidden" name="project_id" value="<tpl>$project_id</tpl>" />
	        				<table width="100%">
	        					<tr>
	        						<th width="15%">
	        							执行方案名称：
	        						</th>
	        						<td align="left">
	        							<input type="text" name="title" />
	        						</td>
	        					</tr>
	        					<tr>
	        						<th>
	        							上传执行方案：
	        						</th>
	        						<td align="left">
	        							<input type="file" name="fangan" class="fct-input" />
	        						</td>
	        					</tr>
	        					<tr>
	        						<td colspan="2" align="left">
	        							<input type="submit" class="bthl" value="上传" />
	        						</td>
	        					</tr>
	        				</table>
							</form>
							<tpl>/if</tpl>
							</div>
							<br>
							<form action="customer.php?action=save_custom" method="post" id="form1" name="form1" >
						<div style="height:30px; font-size:14px; font-weight:bold;">
							需要的审核流程
						</div>
						<table width="100%" border="1">
							<tr style=" background: none repeat scroll 0 0 #EEEEEE;  font-size: 14px; ">
								<td style="text-align:center; padding: 10px;">审核</td>
								<td style="text-align:center; padding: 10px;">角色</td>
								<td style="text-align:center; padding: 10px;">审批人</td>
								<td style="text-align:center; padding: 10px;">审批结果</td>
								<td style="text-align:center; padding: 10px;">审批时间</td>
								<td style="text-align:center; padding: 10px;">审批意见</td>
						    </tr>
						     
						    <tr>
                                <td style="padding: 10px;">一级</td>
								<td style="padding: 10px;">客户总监</td>
								<td style="padding: 10px;">张三</td>
								<td style="padding: 10px;">待审核</td>
								<td style="padding: 10px;"></td>
								<td style="padding: 10px;"></td>
                            </tr>
                            <tr>
                                <td style="padding: 10px;">二级</td>
								<td style="padding: 10px;">媒介总监</td>
								<td style="padding: 10px;">王五</td>
								<td style="padding: 10px;">待审核</td>
								<td style="padding: 10px;"></td>
								<td style="padding: 10px;"></td>
                            </tr>
                            <tr>
                                <td style="padding: 10px;">三级</td>
								<td style="padding: 10px;">VP</td>
								<td style="padding: 10px;">李刚</td>
								<td style="padding: 10px;">待审核</td>
								<td style="padding: 10px;"></td>
								<td style="padding: 10px;"></td>
                            </tr>
						</table>
        				</div>	  
        			    </form>
        			 </div>
        	   </div>
 
				
			</div>
		</div>
	</div>
</div>
<tpl> include file='sys_config.js.html' </tpl>
<script>
function del_fangan(id)
{
	var r = confirm("您确定删除此方案吗？");
	if (r == true)
	{
		window.location.href="doing_flow.manage.php?action=del_fangan&id=" + id;
	}
	
	return false;
}
</script>
</body>
</html>